package org.jypj.dev.model;

import com.google.gson.Gson;

/**
 * 车次工序表
 *
 * @author chenyu
 */
public class TrainWork implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    private String id; // 主键---trainWorkId
    private String trainId; // 车次ID
    private String workId; // 工序ID
    private int startDay = 1;// 开始天
    private String startTime; // 开始时间
    private int endDay = 1;// 结束天数
    private String endTime; // 结束时间
    private String validDate = "";//生效时间
    private int isValid = 1;//是否有效
    private String modifyTime;//修改时间

    private String workName;// 工序名称
    private int nfcNum;// NFC数量
    private int photoNum; // 拍照数量
    private int isCatalog;// 是否目录
    private String workParentId; // 是否功能或者目录
    private int isFinish;// 是否完成
    private String finishTime;// 结束时间
    private String beginTime;// 开始时间
    private int workStatus = 0;// 工序状态 0表示空白 1表示正常 -1表示缺少 -2表示提前，-3表示延迟

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTrainId() {
        return this.trainId;
    }

    public void setTrainId(String trainId) {
        this.trainId = trainId;
    }

    public String getWorkId() {
        return this.workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    public String getStartTime() {
        return this.startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return this.endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getWorkName() {
        return workName;
    }

    public void setWorkName(String workName) {
        this.workName = workName;
    }

    public int getNfcNum() {
        return nfcNum;
    }

    public void setNfcNum(int nfcNum) {
        this.nfcNum = nfcNum;
    }

    public int getPhotoNum() {
        return photoNum;
    }

    public void setPhotoNum(int photoNum) {
        this.photoNum = photoNum;
    }

    public int getWorkStatus() {
        return workStatus;
    }

    public void setWorkStatus(int workStatus) {
        this.workStatus = workStatus;
    }

    public int getStartDay() {
        return startDay;
    }

    public void setStartDay(int startDay) {
        this.startDay = startDay;
    }

    public int getEndDay() {
        return endDay;
    }

    public void setEndDay(int endDay) {
        this.endDay = endDay;
    }

    public int getIsFinish() {
        return isFinish;
    }

    public void setIsFinish(int isFinish) {
        this.isFinish = isFinish;
    }

    public String getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(String finishTime) {
        this.finishTime = finishTime;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public int getIsCatalog() {
        return isCatalog;
    }

    public void setIsCatalog(int isCatalog) {
        this.isCatalog = isCatalog;
    }

    public String getWorkParentId() {
        return workParentId;
    }

    public void setWorkParentId(String workParentId) {
        this.workParentId = workParentId;
    }

    public String getValidDate() {
        return validDate;
    }

    public void setValidDate(String validDate) {
        this.validDate = validDate;
    }

    public int getIsValid() {
        return isValid;
    }

    public void setIsValid(int isValid) {
        this.isValid = isValid;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {

        return new Gson().toJson(this);
    }

}